import Vue from 'vue'
const Componet = {
  props: ['value'],
  template: `<input type="text"  @input="handleInput" :value='value'>`,
  methods: {
    handleInput (e) {
      this.$emit('input', e.target.value)
    }
  }
}
new Vue({
  components: {
    CompOne: Componet
  },
  el: '#root',
  data: {
    value: '123'
  },
  template: `
    <div>
        <comp-one :value="value" @input="value=arguments[0]"></comp-one>
    </div>
    `
})
